{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
	<li class="active"><a href="#tab_basic">基本设置</a></li>
</ul>
<div class="app-content">
	<div class="app-form">
		<form action="" method="post" class="form-horizontal" id="setting-form">
			<div class="panel panel-default">
				<div class="panel-heading">插件设置</div>
				<div class="panel-body">
					<div class="tab-content">
						<div class="tab-pane active" id="tab_basic">
							<div class="form-group">
								<label class="col-sm-2 control-label">插件开关</label>
								<div class="col-sm-9">
									<label class="radio-inline">
										<input type="radio" value="1" name="base[switch]" {if $base['switch'] == 1} checked {/if} /> 开启
									</label>
									<label class="radio-inline">
										<input type="radio" value="0" name="base[switch]" {if $base['switch'] == 0 || empty($base['switch'])} checked {/if} /> 关闭
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">最低提现金额</label>
								<div class="col-sm-9">
									<div class="input-group">
										<span class="input-group-addon">￥</span>
										<input type="text" name="base[lowestmoney]" class="form-control" value="{$base['lowestmoney']}">
									</div>
									<span class="help-block">最小值默认为1元</span>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">提现频率</label>
								<div class="col-sm-9">
									<div class="input-group">
										<input type="text" name="base[frequency]" class="form-control" value="{$base['frequency']}">
										<span class="input-group-addon">天一次</span>
									</div>
									<span class="help-block">不填或填0则默认无限制，填1则为一天一次，以此类推。</span>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">提现手续费</label>
								<div class="col-sm-9">
									<div class="input-group">
										<input type="text" name="base[withdrawcharge]" class="form-control" value="{$base['withdrawcharge']}">
										<span class="input-group-addon">%</span>
									</div>
									<span class="help-block">提现时给平台的手续费,不填或填0则没有手续费</span>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">用户协议</label>
								<div class="col-sm-9">
									{php echo tpl_diy_editor_create('base[describe]',$base['describe']);}
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-9">
					<input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		</form>
	</div>
</div>	

{php include wl_template('common/footer');}
	
							